package cn.edu.cqytxy.entity;

/**
 * 武器
 *
 * @author yinjw
 */
public class Weapon {

    /**
     * id
     */
    private int id;

    /**
     * 描述
     */
    private String remake;

    /**
     * 伤害值
     */
    private int att;

    /**
     * 名称
     */
    private String name;

    public Weapon() {
    }

    /**
     * 形式参数：att，name
     * 实参：100，"AK47"
     */
    public Weapon(int att, String name) {
        this.att = att;
        this.name = name;
    }

    public int getAtt() {
        return att;
    }

    public void setAtt(int att) {
        this.att = att;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRemake() {
        return remake;
    }

    public void setRemake(String remake) {
        this.remake = remake;
    }

    /**
     * 攻击
     */
    public void attack() {
        // 如果子类重写了此方法，将以子类为准，不重写延用父类的逻辑
    }
}
